package com.cly.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 消息记录查询条件
 *
 * @author by 春风能解释
 * <p>
 * 2025/1/25
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "消息记录查询条件", description = "消息记录查询条件")
public class MessageListDto implements Serializable {

    /**
     * 序列化id
     */
    @Serial
    private static final long serialVersionUID = 8941212612541485021L;

    /**
     * 发送者id
     */
    @Schema(description = "发送者id")
    private Long me;

    /**
     * 接收者id
     */
    @Schema(description = "接收者id")
    private Long to;

    /**
     * 页数
     */
    @Schema(description = "页数")
    private Long page;

    /**
     * 最大显示数
     */
    @Schema(description = "最大显示数")
    private Long size;
}
